package com.yhui.cloud.commons.dto;

/**
 * <p>
 * Description: 响应状态码
 * </p>
 *
 * @author: luyuhui
 * @create: 2020-02-23 21:51
 * @see: com.yhui.cloud.commons.dto
 * @version: v1.0.0
 **/
public class ResponseCode {
    /**
     * 成功
     */
    public static final int OK = 20000;

    /**
     * 失败
     */
    public static final int FAIL = 50000;

    /**
     * 熔断
     */
    public static final int BREAKING = 30000;

    /**
     * 非法token
     */
    public static final int ILLEGAL_TOKEN = 50008;

    /**
     * 其他账号已登录
     */
    public static final int OTHER_CLIENTS_LOGGED_IN = 50012;

    /**
     * 已超时
     */
    public static final int TOKEN_EXPIRED = 50014;


}
